import { ajax } from "@/utils/request";
import '@/mock/setup/message'
import '@/mock/setup/address'

export function myMessage(data:{tel:string}) {
    return ajax({
        url: "/myMessage",
        method:'post',
        data
    });
}

export function address(data:{tel:string}) {
    return ajax({
        url: "/address",
        method:'post',
        data
    });
}

export function addressstep(data:{id:string,name:string,tel:string,address:string}) {
    return ajax({
        url: "/addressstep",
        method:'post',
        data
    });
}

export function modifyAdd(data:{id:string,name:string,tel:string,address:string}) {
    return ajax({
        url: "/modifyAdd",
        method:'post',
        data
    });
}